import request from '@/utils/request'

// 创建随手拍-图片
export function createReportingFile(data) {
  return request({
    url: '/system/reporting-file/create',
    method: 'post',
    data: data
  })
}

// 更新随手拍-图片
export function updateReportingFile(data) {
  return request({
    url: '/system/reporting-file/update',
    method: 'put',
    data: data
  })
}

// 删除随手拍-图片
export function deleteReportingFile(id) {
  return request({
    url: '/system/reporting-file/delete?id=' + id,
    method: 'delete'
  })
}

// 获得随手拍-图片
export function getReportingFile(id) {
  return request({
    url: '/system/reporting-file/get?id=' + id,
    method: 'get'
  })
}

// 获得随手拍-图片分页
export function getReportingFilePage(params) {
  return request({
    url: '/system/reporting-file/page',
    method: 'get',
    params
  })
}
// 导出随手拍-图片 Excel
export function exportReportingFileExcel(params) {
  return request({
    url: '/system/reporting-file/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
